<div id="profile">
	<div id="user">
		<div id="username"><b>Usuario:</b> <?php echo $user['User']['username']; ?></div>
		<div id="points"><b>Puntos:</b> <?php echo $user['User']['points']; ?></div>
	</div>

	<div id="avatar">
	<?php if (empty($user['User']['avatar'])): ?>
		<?php echo $this->Html->image("user.png"); ?>
	<?php else: ?>
		<?php echo $this->Html->image("/files/uploads/avatares/". $user['User']['avatar']); ?>
	<?php endif; ?>
	</div><!-- avatar -->

	<div class="clear"></div>
	<hr class="separator" />
		
	<?php
		echo $form->create('User', array('type' => 'file'));
		echo $form->input('avatar', array('label'=> 'Cambia tu avatar', 'type' => 'file'));
		echo $form->input('id', array('type' => 'hidden'));
		echo $form->end('Upload');
	?>
	
	<hr class="separator" />
</div><!-- profile -->